<?php
	include('config.php');
	include('plan.php');
	new Config();
	$req = new Plan;
	$req->setID($_GET['id']);
	if($_GET['turn'] == 1)
	{
		$req->setGrade($_GET['grade']);
		$req->editGrade();
	}
	else
	{
		$req->setGradePlan($_GET['grade']);
		$req->editGradeP();
	}
?>